<?php
/* SVN FILE: $Id$ */
/* MgPaise Test cases generated on: 2009-06-11 18:06:39 : 1244763459*/
App::import('Model', 'MgPaise');

class MgPaiseTestCase extends CakeTestCase {
	var $MgPaise = null;
	var $fixtures = array('app.mg_paise', 'app.mg_departamento', 'app.mg_municipio');

	function startTest() {
		$this->MgPaise =& ClassRegistry::init('MgPaise');
	}

	function testMgPaiseInstance() {
		$this->assertTrue(is_a($this->MgPaise, 'MgPaise'));
	}

	function testMgPaiseFind() {
		$this->MgPaise->recursive = -1;
		$results = $this->MgPaise->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('MgPaise' => array(
			'id'  => 1,
			'descripcion'  => 'Lorem ipsum dolor sit a',
			'created'  => '2009-06-11',
			'modified'  => '2009-06-11',
			'adicionado_por'  => 'Lorem ipsum dolor ',
			'modificado_por'  => 'Lorem ipsum dolor '
			));
			$this->assertEqual($results, $expected);
	}
}
?>